package com.kotlin.heimaplayer.adapter

import android.content.Context
import android.view.View
import android.view.ViewGroup
import android.widget.BaseAdapter
import androidx.recyclerview.widget.RecyclerView
import com.kotlin.heimaplayer.model.YueDanItemBean
import com.kotlin.heimaplayer.view.YueDanView
import com.kotlin.heimaplayer.widget.LoadMoreView
import com.kotlin.heimaplayer.widget.YueDanItemView

/**
 * 悦单适配器
 */
class YueDanAdapter: BaseListAdapter<YueDanItemBean, YueDanItemView>(){
    override fun getItemView(context: Context?): YueDanItemView {
        return YueDanItemView(context)
    }

    override fun refreshView(itemView: YueDanItemView, data: YueDanItemBean?) {
        data?.let {
            itemView.setData(data)
        }
    }

}